package Mangos::DB::Characters::CharacterTicket;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'character_ticket',

    columns => 
    [
        ticket_id         => { type => 'integer', not_null => 1 },
        guid              => { type => 'integer', default => '0', not_null => 1 },
        ticket_text       => { type => 'text', length => 65535 },
        ticket_lastchange => { type => 'timestamp', not_null => 1 },
    ],

    primary_key_columns => [ 'ticket_id' ],
);

1;

package Mangos::DB::Characters::CharacterTicket::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::CharacterTicket' }

__PACKAGE__->make_manager_methods('character_ticket');

1;
